#coding=utf-8
import os

class ConfigUtil:
    pass

if __name__ == '__main__':
    # 测试读取网络图片，并上传到图片服务器
    pic_url = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1563252234&di=74cfe8bf11af2134d5dff2d1be6d32ad&imgtype=jpg&er=1&src=http%3A%2F%2Fi0.hdslb.com%2Fbfs%2Farticle%2F6db8e892c159bcc36a60a64693bfcbd3445cebda.jpg"
    #weibo_util.post_picture(3, pic_url)
    data = {
        'weiboId': 1
    }
    # files = {'file': open("E:/lgy/net_resource/spider_pic/ac1307d6-abc2-4490-b5f5-c10fdbfccf8f.png", 'rb')}
    # res = requests.post('http://localhost:9091/api/t1/v1/fastdfs-service/upload/image', data=data, files=files)
    os.remove('E:/lgy/net_resource/spider_pic/ac1307d6-abc2-4490-b5f5-c10fdbfccf8f.png')
